Use BD_SYS_ATENCIONES
Go
Create Type DetReqTableType as table(
   iCodMat  int,
   nCanReq  numeric(10,2)
)